package com.lanou.utils;

/**
 * 用于包装json结果数据
 */
public class AjaxResult {

    private int code;
    private String msg;
    private Object data;
    //封装种类(添加书时使用)
    private Object category;
    //记录登陆状态
    private String username;
//    页码总数
    private Long maxpage;
    //封装订单(查订单时用)
    private Object orders;
    //封装订单详情
    private Object orderitem;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Object getCategory() {
        return category;
    }

    public void setCategory(Object category) {
        this.category = category;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getMaxpage() {
        return maxpage;
    }

    public void setMaxpage(Long maxpage) {
        this.maxpage = maxpage;
    }

    public Object getOrders() {
        return orders;
    }

    public void setOrders(Object orders) {
        this.orders = orders;
    }

    public Object getOrderitem() {
        return orderitem;
    }

    public void setOrderitem(Object orderitem) {
        this.orderitem = orderitem;
    }
}
